<?php /* Smarty version 2.6.19, created on 2008-07-06 11:53:22
         compiled from another/invite.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'config_load', 'another/invite.tpl', 1, false),)), $this); ?>
<?php echo smarty_function_config_load(array('file' => "index.conf"), $this);?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/doctype.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<head>
    <title>Invite</title>
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/include.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</head>

<body>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/logo.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "inc/global_menu.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div><strong>Invite <a href="/another/profile/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/"><?php echo $this->_tpl_vars['data']['user_login']; ?>
</a> to</strong></div>

<?php if ($this->_tpl_vars['invite']): ?>
    <p>Invitation send</p>
<?php endif; ?>
<?php if (sizeof ( $this->_tpl_vars['rooms'] )): ?>
	<form action="" method="post">
	    <select name="invite">
        <?php $_from = $this->_tpl_vars['rooms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
            <option value="<?php echo $this->_tpl_vars['item']['room_id']; ?>
"><?php echo $this->_tpl_vars['item']['room_name']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
	    </select>
	    <input type="submit" value="Invite" />
	</form>
<?php else: ?>
    <p>Nothing.</p>
<?php endif; ?>
<p>&nbsp;</p>
<a href="/another/index/<?php echo $this->_tpl_vars['data']['user_id']; ?>
/">User menu</a>
</body>

</html> 